package com.jn.zhinongbao.adapter.bean;

public class Product {
    private int id;
    private String name;
    private double price;
    private String location; // 发货地
    private String contactPhone; // 联系电话
    private String imageUrl; // 图片url（手机真实的物理存储路径）
    private String category; // 分类：水果蔬菜、米面粮油、农资农具
    private String shopName; // 店铺名
    private String merchantName; // 商家名
    private int merchantId; // 商家id
    private int likes; // 点赞数

    public Product() {}

    public Product(String name, double price, int likes, String imageUrl, String location) {
        this.name = name;
        this.price = price;
        this.likes = likes;
        this.imageUrl = imageUrl;
        this.location = location;
    }

    public Product(String name, double price, String location, String contactPhone, 
                   String imageUrl, String category, String shopName, String merchantName, int merchantId) {
        this.name = name;
        this.price = price;
        this.location = location;
        this.contactPhone = contactPhone;
        this.imageUrl = imageUrl;
        this.category = category;
        this.shopName = shopName;
        this.merchantName = merchantName;
        this.merchantId = merchantId;
        this.likes = 0;
    }

    // Getters and setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public int getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(int merchantId) {
        this.merchantId = merchantId;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }
} 